/*
自己选择的路 ,跪着也要走完。朋友们 , 虽然这个世界日益浮躁起来,只
要能够为了当时纯粹的梦想和感动坚持努力下去 , 不管其它人怎么样,我
们也能够保持自己的本色走下去。
To the world , you will be a person , but to a person , you
will be the world .                               ——AKPower
*/
//作者:AKPower
//算法:
#include <iostream>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <vector>
#include <map>
#include <queue>
#include <cstdio>
#include <string>
#include <stack>
#include <set>
#define IOS ios::sync_with_stdio(false), cin.tie(0)
using namespace std;
typedef long long ll;
ll X1, X2, Y1, Y2;

ll gcd(ll x, ll y)
{
    return y == 0 ? x : gcd(y, x % y);
}
int main()
{
    IOS;
    cin >> X1 >> Y1;
    cin >> X2 >> Y2;
    if (Y1 == Y2)
    {
        cout << "y=" << Y1 << endl;
        return 0;
    }
    ll fz1 = Y1 - Y2;
    ll fm1 = X1 - X2;
    ll gc1 = gcd(fz1, fm1);
    fz1 /= gc1;
    fm1 /= gc1;
    ll fz2 = fm1 * Y1 - fz1 * X1;
    ll fm2 = fm1;
    ll gc2 = gcd(fz2, fm2);
    fz2 /= gc2;
    fm2 /= gc2;
    cout << "y=";
    // -------------输出k
    if (fz1 * fm1 < 0)
    {
        cout << "-";
    }
    if (abs(fz1) == 1 && abs(fm1) == 1)
    {
        ;
    }
    else
        cout << abs(fz1);
    if (abs(fm1) > 1)
    {
        cout << "/" << abs(fm1) << "*";
    }
    cout << "x";
    // ------------输出b
    if (fz2 * fm2 < 0)
    {
        cout << "-";
    }
    else if (fz2 * fm2 == 0)
    {
        cout << endl;
        return 0;
    }
    else
        cout << "+";
    cout << abs(fz2);
    if (abs(fm2) > 1)
    {
        cout << "/" << abs(fm2);
    }
    cout << endl;
    getchar();
    getchar();
    return 0;
}
